#!/usr/bin/env python
#coding=utf-8

from aladin.database import db

class Region(db.Model):
    
    __tablename__ = 'region'

    region_id = db.Column(db.Integer, primary_key=True)
    parent_id = db.Column(db.Integer, default=0)
    region_name = db.Column(db.String(120), default='')
    region_type = db.Column(db.Integer, default=2)
    agency_id = db.Column(db.Integer, default=0)

    def __str__(self):
        return "Region => { \
region_id:%d, parent_id:%d, region_name:'%s', region_type:%d, agency_id:%d}" % (
self.region_id, self.parent_id, self.region_name, self.region_type, self.agency_id)

    __repr__ = __str__
